package com.watch.system.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.watch.system.model.entity.CarAuth;
import com.watch.system.model.form.AuthForm;
import com.watch.system.model.vo.CarAuthPageVO;
import com.watch.system.model.vo.UserImportVO;
import com.watch.system.model.vo.UserInfoVO;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * 用户对象转换器
 *
 * @author haoxr
 * @since 2022/6/8
 */
@Mapper(componentModel = "spring")
public interface CarAuthConverter {


    CarAuthPageVO toPageVo(CarAuthPageVO bo);

    Page<CarAuthPageVO> toPageVo(Page<CarAuthPageVO> bo);

    AuthForm entity2Form(CarAuth entity);

    @InheritInverseConfiguration(name="entity2Form")
     CarAuth form2Entity(AuthForm entity);


}
